package com.ruoyi.order.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 产品码管理对象 mes_product_barcode
 * 
 * @author ruoyi
 * @date 2025-08-10
 */
public class MesProductBarcode extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 码标识 */
    private Long barcodeId;

    /** 产品编码 */
    @Excel(name = "产品编码")
    private String partId;

    /** 排序 */
    @Excel(name = "排序")
    private Integer sortIndex;

    /** 站位编码 */
    @Excel(name = "站位编码")
    private String stationCode;

    /** 产品型号 */
    @Excel(name = "产品型号")
    private String modelCode;

    /** 订单号 */
    @Excel(name = "订单号")
    private String orderNumber;

    /** 追溯码类型，存放追数码英文名称 */
    @Excel(name = "追溯码类型")
    private String qrCodeType;

    /** 追溯码 */
    @Excel(name = "追溯码")
    private String qrCode;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 创建人 */
    @Excel(name = "创建人")
    private String creator;

    /** 更新人 */
    @Excel(name = "更新人")
    private String updater;

    /** 是否删除 */
    @Excel(name = "是否删除")
    private Integer deleted;

    public void setBarcodeId(Long barcodeId) 
    {
        this.barcodeId = barcodeId;
    }

    public Long getBarcodeId() 
    {
        return barcodeId;
    }
    public void setPartId(String partId) 
    {
        this.partId = partId;
    }

    public String getPartId() 
    {
        return partId;
    }
    public void setSortIndex(Integer sortIndex) 
    {
        this.sortIndex = sortIndex;
    }

    public Integer getSortIndex() 
    {
        return sortIndex;
    }
    public void setStationCode(String stationCode) 
    {
        this.stationCode = stationCode;
    }

    public String getStationCode() 
    {
        return stationCode;
    }
    public void setOrderNumber(String orderNumber) 
    {
        this.orderNumber = orderNumber;
    }

    public String getModelCode() { return modelCode; }

    public void setModelCode(String modelCode) { this.modelCode = modelCode; }

    public String getOrderNumber()
    {
        return orderNumber;
    }

    public void setQrCodeType(String qrCodeType) { this.qrCodeType = qrCodeType; }
    public String getQrCodeType() { return qrCodeType; }


    public void setQrCode(String qrCode) 
    {
        this.qrCode = qrCode;
    }
    public String getQrCode()
    {
        return qrCode;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setCreator(String creator) 
    {
        this.creator = creator;
    }

    public String getCreator() 
    {
        return creator;
    }
    public void setUpdater(String updater) 
    {
        this.updater = updater;
    }

    public String getUpdater() 
    {
        return updater;
    }
    public void setDeleted(Integer deleted) 
    {
        this.deleted = deleted;
    }

    public Integer getDeleted() 
    {
        return deleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("barcodeId", getBarcodeId())
            .append("partId", getPartId())
            .append("sortIndex", getSortIndex())
            .append("stationCode", getStationCode())
            .append("modelCode", getModelCode())
            .append("orderNumber", getOrderNumber())
            .append("qrCodeType", getQrCodeType())
            .append("qrCode", getQrCode())
            .append("status", getStatus())
            .append("creator", getCreator())
            .append("createTime", getCreateTime())
            .append("updater", getUpdater())
            .append("updateTime", getUpdateTime())
            .append("deleted", getDeleted())
            .toString();
    }
}
